import React, { FC } from 'react';
import LogReg from '../../components/log-reg';
import { useHistory } from 'react-router-dom';

// 商家登陆注册页
const MerLogReg: FC = props => {
    const history = useHistory();

    const login = () => {
        history.push("/merLogReg/merLogin");
    }
    
    const register = () => {
        history.push("/merLogReg/shopOpenNotice");
    }

    return <LogReg login={login} register={register} regBtnValue="注册开店" centerText="商 家 中 心" />
}
export default MerLogReg;
